package com.joinway.framework.admin.core.service.file;

import java.io.File;
import java.util.List;
import java.util.Map;

import com.joinway.framework.admin.core.bean.FileImportContext;
import com.joinway.framework.core.plugin.Plugin;

public interface FileProcessor extends Plugin {

	/**
	 * 
	 * @param fileName
	 * @param columns	
	 * 			key - field name, value - display name
	 * @param domains
	 * @return file download url
	 */
	String export(String fileName, Map<String, String> columns, List<?> domains, int port) throws Exception;
	
	FileImportContext imports(File file, String table, String columnMap) throws Exception;

	String getFileType();
	
	String getTargetTable();
	
}

